package com.abel.bigwater.dataserver.model.qdies

import io.netty.buffer.ByteBuf

class MainAskUploadModeData : DtenEmptyData() {
    override var type = FuncType.AskUploadMode
}

class MainSetUploadModeData() : D10BaseData(1) {
    override var type = FuncType.SetUploadMode

    var uploadMode = UploadModeType.GPRS

    override fun fill(buf: ByteBuf) {
        buf.writeByte(uploadMode.code)
    }

    override fun parse(buf: ByteBuf): Boolean {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun count(): Int = len

}